const webpack = require("webpack");
export default {
  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: '欽天監-黔北山人强势文化传播中心"文化自信,民族复兴"',
    htmlAttrs: {
      lang: "en",
    },
    meta: [
      { charset: "utf-8" },

      {
        name: "viewport",
        content:
          "width=device-width,height=device-height,inital-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no;",
      },
      { name: "applicable-device", content: "pc,mobile" },
      {
        httpEquiv: "Content-Security-Policy",
        content: "upgrade-insecure-requests",
      },
      { name: "apple-touch-fullscreen", content: "yes" },
      { name: "apple-mobile-web-app-capable", content: "yes" },
      {
        name: "keywords",
        content:
          "欽天監,钦天监,星象,国学,经典,易经,八卦,命理,风水,玄学,文化自信,民族复兴",
      },
      {
        hid: "description",
        name: "description",
        content:
          '荧荧火光，离离乱惑-为天地立心,为生民立命,为往圣继绝学,为万世开太平,"文化自信,民族复兴"',
      },
      { name: "google-adsense-account", content: "ca-pub-1163386700613980" },
    ],
    link: [
      { rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
      { rel: "canonical", href: "https://www.dsnbc.com/" },
    ],
    script: [
      { src: "//hm.baidu.com/hm.js?08a0ead649723a1c2d485c52b2e8721a" }, //百度统计
      { src: "/font_1838041_g78gjpyt4m6/iconfont.js" }, //iconfont
      { src: "//pv.sohu.com/cityjson?ie=utf-8" }, //获取地域
      { src: "/rem.js" }, //适配移动端
      { src: "https://res.wx.qq.com/open/js/jweixin-1.6.0.js" }, //微信sdk
      {
        async: true,
        src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1163386700613980",
        crossorigin: "anonymous",
      }, //谷歌广告
    ],
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [
    "~/assets/inc/main.css",
    "vuesax/dist/vuesax.css",
    // 'highlight.js/styles/atom-one-dark-reasonable.css'
  ],

  loading: true,

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
    { src: "~/plugins/vuesax" },
    { src: "~/plugins/cookie", ssr: true }, //js-cookie
    { src: "~/plugins/baidu.js" }, //百度统计
    { src: "~/plugins/route" }, //路由守卫
    { src: "~/plugins/axios" },
    { src: "~/plugins/highlight" }, //代码高亮
    { src: "~/plugins/vue-lazyload", ssr: true }, //图片懒加载
    { src: "~/plugins/cropper", ssr: false }, //图片裁剪
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: true,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [],

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: ["@nuxtjs/axios"],

  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {
    plugins: [
      new webpack.ProvidePlugin({
        $: "jquery",
      }),
    ],
    vendor: ["vue-lazyload"],
  },
};
